package com.example.lanouhn.bantangapp.activities.activities;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.example.lanouhn.bantangapp.R;

/**
 * Created by lanouhn on 16/7/26.
 */
public class Avatar_SingleProduct extends Activity {

    private ImageView back;//返回
    private LinearLayout ll_wish;//创建新的心愿单
    private LinearLayout ll_love;//我的喜欢
    private LinearLayout ll_wanted; //想要的同款

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.avatar_singleproduct_activity);
        back = (ImageView) findViewById(R.id.back);
        ll_wish = (LinearLayout) findViewById(R.id.ll_wish);
        ll_love = (LinearLayout) findViewById(R.id.ll_love);
        ll_wanted = (LinearLayout) findViewById(R.id.ll_wanted);
         //

        initListener();
    }

    /**
     *  监听事件
     */

    private void initListener() {

        //返回
        back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
        //创建新的心愿单
        ll_wish.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent it = new Intent(Avatar_SingleProduct.this, Avatar_SingleProduct_Establish_Activity.class);
                startActivity(it);

            }
        });
         //我的喜欢
        ll_love.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent it = new Intent(Avatar_SingleProduct.this, Avatar_SingleProduct_Love_Activity.class);
                startActivity(it);
            }
        });
        //想要的同款
        ll_wanted.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent it = new Intent(Avatar_SingleProduct.this, Avatar_SingleProduct_Wanted_Activity.class);
                startActivity(it);
            }
        });
    }

}


